package com.pain.scaffold.admin.service.sms.config;

import com.aliyun.teaopenapi.models.Config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "sms")
public class SmsConfig {
    private boolean enable;
    private Alibaba alibaba;

    @Data
    public static class Alibaba{
        private Config config;
        private Map<String, DomesticTextConfig> domesticTextConfigMap;

        @Data
        public static class DomesticTextConfig{
            /**
             * 签名名称
             */
            private String signName;
            /**
             * 模板code
             */
            private String templateCode;
        }
    }
}
